<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert saveUpdateUser.jspr</title>
	</head>
	<body>
		<div class="pageContent">
			<form id="frm" method="post" enctype="multipart/form-data"
				action="appVersion/saveUpdateVersion"
				onsubmit="return validateCallback(this, dialogAjaxDone);"
				class="pageForm required-validate">
				<input type="hidden" name="parentId" value="${params.parentId}" />
				<input type="hidden" name="id" id="id" value="${appVersion.id }">
				<div class="pageFormContent" layoutH="50" style="overflow: auto;">
					<dl style="width: 380px;">
						<dt style="width: 100px;">
							<label>
								app名称：
							</label>
						</dt>
						<dd>
								 <select name="appName" class="required" value="${appVersion.appName }">
								 	<option value="">--请选择--</option>
									<option value="贷速侠" <c:if test="${appVersion.appName  eq '贷速侠'}">selected="selected"</c:if>>贷速侠</option>
								</select> 
								<label style="color: red;">*</label>
						</dd>
					</dl>
					<div class="divider"></div>
					<dl  style="width: 380px;">
						<dt style="width: 100px;">
							<label>
								操作系统:
							</label>
						</dt>
						<dd>
							 <select name="os" class="required"  value="${appVersion.os }">
							 	<option value="">--请选择--</option>
								<option value="Android" <c:if test="${appVersion.os  eq 'Android'}">selected="selected"</c:if>>Android</option>
								<option value="IOS" <c:if test="${appVersion.os  eq 'IOS'}">selected="selected"</c:if>>IOS</option>
							</select> 
							<label style="color: red;">*</label>
						</dd>
					</dl>
					<div class="divider"></div>
					<dl  style="width: 380px;">
						<dt style="width: 100px;">
							<label>
								是否强制升级:
							</label>
						</dt>
						<dd>
							 <select name="isForce"  value="" class="required" value="${appVersion.isForce }">
							 	<option value="">--请选择--</option>
								<option value="0" <c:if test="${appVersion.isForce  eq 0}">selected="selected"</c:if>>否</option>
								<option value="1" <c:if test="${appVersion.isForce  eq 1}">selected="selected"</c:if>>是</option>
							</select> 
							<label style="color: red;">*</label>
						</dd>
					</dl>
					<div class="divider"></div>
					<dl style="width: 380px;">
						<dt style="width: 100px;">
							<label>
								版本号:
							</label>
						</dt>
						<dd>
							<input name="currentVersion" value="${appVersion.currentVersion}"
							 class="required"	type="text" alt="请输入版本号" size="30"/>
						</dd>
					</dl>
					<div class="divider"></div>
					<dl style="width: 380px;">
						<dt style="width: 100px;">
							<label>
								下载地址：
							</label>
						</dt>
						<dd>
							<input name="url" value="${appVersion.url}"
							 class="required"	type="text" alt="下载地址" size="30"/>
						</dd>
					</dl>
					
				</div>
				<div class="formBar">
					<ul>
						<li>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit">
										保存
									</button>
								</div>
							</div>
						</li>
						<li>
							<div class="button">
								<div class="buttonContent">
									<button type="button" class="close">
										取消
									</button>
								</div>
							</div>
						</li>
					</ul>
				</div>
			</form>
		</div>
	</body>
</html>